<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/11
 * Time: 9:58
 */


namespace app\answer\controller;

use think\Config;
use think\Db;
use think\Controller;


class Answer extends Controller
{
    //小程序
    public function index()
    {
        $question = db('question')->select(function ($query) {
            $query->where('status', 0)
                ->order('id desc');
        });
        return $this->sucReturn($question);
    }
}
